import { instance, unwrap } from './utils'

export async function listGoods(params?: API.PageReq) {
  const res = await instance.post<API.Res<Data[]>>('/car/serviceProduct/getServiceProductList', null, { params })

  return unwrap(res)
}
